<ui:composition template="/resources/templates/page.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:define name="page-name">
        <f:viewParam name="tab" value="#{currentView.tab}" />
        <f:viewParam name="page" value="#{currentView.page}" />
        <f:event listener="#{systemPropsController.initSelected}" type="preRenderView"/>
        <h:outputFormat value="#{msgs['block.edit.systemProp']}" styleClass="table_name"
                        rendered="#{systemPropsController.selectedBean != null}">
            <f:param value="#{systemPropsController.selectedBean.name}"/>
        </h:outputFormat>
    </ui:define>

    <ui:define name="page-content">
        <h:form rendered="#{systemPropsController.selectedBean != null}">
            <table width="100%" border="0">
                <tr>
                    <td colspan="2" class="bottom_dotted"></td>
                </tr>
                <tr>
                    <td colspan="2" class="description">
                        <h:outputText value="#{msgs['rules.module.code']}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h:outputLabel value="#{msgs['code']}:" for="code" styleClass="margin1"/>
                    </td>
                    <td>
                        <h:inputText id="code" value="#{systemPropsController.selectedBean.code}"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="bottom_dotted"></td>
                </tr>
                <tr>
                    <td colspan="2" class="description">
                        <h:outputText value="#{msgs['rules.module.name']}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h:outputLabel value="#{msgs['name']}:" for="name" styleClass="margin1"/>
                    </td>
                    <td>
                        <h:inputText id="name" value="#{systemPropsController.selectedBean.name}"/>
                    </td>
                </tr>
                <!--<tr>-->
                <!--<td colspan="2" class="bottom_dotted"></td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td colspan="2" class="description">-->
                <!--<h:outputText value="#{msgs['rules.module.path']}"/>-->
                <!--</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td>-->
                <!--<h:outputLabel value="#{msgs['path']}:" for="path" styleClass="margin1"/>-->
                <!--</td>-->
                <!--<td>-->
                <!--<h:outputText id="path" value="#{moduleBean.path}"/>-->
                <!--</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td colspan="2" class="bottom_dotted"></td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td colspan="2" class="description">-->
                <!--<h:outputText value="#{msgs['rules.module.visible']}"/>-->
                <!--</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td>-->
                <!--<h:outputLabel value="#{msgs['visible']}:" for="visible" styleClass="margin1"/>-->
                <!--</td>-->
                <!--<td>-->
                <!--<h:outputText id="visible" value="#{moduleBean.visible}"/>-->
                <!--</td>-->
                <!--</tr>-->
                <tr>
                    <td colspan="2" class="bottom_dotted"></td>
                </tr>
                <tr>
                    <td colspan="2" class="description">
                        <h:outputText value="#{msgs['rules.module.description']}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h:outputLabel value="#{msgs['description']}:" for="description" styleClass="margin1"/>
                    </td>
                    <td>
                        <h:inputTextarea cols="30" rows="2" id="description"
                                         value="#{systemPropsController.selectedBean.description}"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="bottom_dotted"></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <!--<h:commandButton action="#{modulesController.editModule}" title="#{msgs['save']}"-->
                        <!--value="#{msgs['save']}"-->
                        <!--styleClass="margin2p"/>-->
                        <h:button outcome="/modules/setting/index" title="#{msgs['cancel']}"
                                         value="#{msgs['cancel']}"
                                         styleClass="margin2p">
                            <f:param name="tab" value="#{currentView.tab}"/>
                            <f:param name="page" value="#{currentView.page}"/>
                        </h:button>
                    </td>
                </tr>
            </table>
        </h:form>
    </ui:define>
</ui:composition>